package raytracing;

import java.awt.Color;

import structs.StandardValues;
import structs.Vector3;

public class RaycastResult {

	public Ray ray;
	public float distance;
	public Color diffuseColor;
	public Color specularColor;
	public float specularIntensity;
	public boolean reflective;
	public float selfllumination = 1;
	
	public Vector3 normal;
	
	public RaycastResult(float dist, Ray ray)
	{
		distance = dist;	
		this.ray = ray;
		diffuseColor = StandardValues.DIFFUSE_COLOR;
		specularColor = StandardValues.SPECULAR_COLOR;	
		specularIntensity = StandardValues.SPECULAR_INTENSITY;
	}
	
	public RaycastResult()
	{
		distance = Integer.MAX_VALUE;
		ray = null;
		diffuseColor = StandardValues.DIFFUSE_COLOR;
		specularColor = StandardValues.SPECULAR_COLOR;	
		specularIntensity = StandardValues.SPECULAR_INTENSITY;
	}
}
